﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Dissemination.MVC.ViewModels.SurveyResultsReportViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<asp:Literal runat="server" Text="<%$ Resources:Literals, ApplicationTitle%>" /> &middot; Programmes management &middot; Survey Activity
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Survey activity report</h1>
    <ul id="survey_activity" class="elements-list">
        <li class="first">
            <div class="cell150 flota">Target area</div>

        <% foreach (var survey in Model.Program.Surveys.Reverse()) { %>
            <div class="num_survey cell110 flota_der centrar">
                <%=survey.SurveyOrdinal%><br />
                <span><%=survey.SurveyPeriod%></span>
            </div>
        <% } %>

        </li>

    <% foreach (var row in Model.Rows) { %>

        <li>
            <div class="cell150 flota"><%=row.TargetArea.TargetAreaCode%> - <%=row.TargetArea.Country.CountryName%></div>
        <% foreach (var result in row.SurveyResults.Reverse<bool>()) { %>
            <div class="cell110 flota_der centrar result"><% if (result) { %><span class="ok"></span> <% } else { %> <span></span> <% } %></div>
        <% } %>
        </li>

    <% } %>

    </ul>

    <p class="enlaces">
    <%= Html.ActionLink("Results report", "Results", new { id=Model.Program.ProgramID }) %>
    </p>
    
    <div class="navigation">
     <p class="enlaces">
     <%= Html.ActionLink("Back to program details", "Details", new { id = Model.Program.ProgramID})%>
    </p></div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="BreadcrumbContent" runat="server">
    <%= Html.ActionLink("Programmes management", "Index") %> &gt; Survey activity
</asp:Content>

